package com.wntms.ywa.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class ArriveTime {
    public static String addDateTime(Date date, int day, int hour, int minute) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);
        cal.add(Calendar.DATE, day);// 24小时制,加天
        cal.add(Calendar.HOUR, hour);// 24小时制 ,加小时
        cal.add(Calendar.MINUTE, minute);// 24小时制,加分钟
        date = cal.getTime();
        String str_date = format.format(date);
        return str_date;
    }

}
